package dfbz.demo.homework2;

import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        Student student1=new Student("小红",true);
        Student student2=new Student("小亮",true);
        Student student3=new Student("小明",false);
        ArrayList<Student> list=new ArrayList<>();
        list.add(student1);
        list.add(student2);
        list.add(student3);
        Subject subject=new Subject("张老师","java",list);
        subject.show();
    }
}
